﻿/// Write a program that reads a text file and prints on the console its odd lines.


using System;
using System.IO;


namespace c_sh_II_lek_6_files
{
    class zad1
    {
        static void Main()
        {
            int lineNumber = 0;
            string filePath = @"testStream.txt";

            using (StreamReader stream = new StreamReader( filePath ) )
            {
                string line = stream.ReadLine();
                while (line != null)
                {
                    if (lineNumber%2==1)
                    {
                        Console.WriteLine(line);
                    }

                    line = stream.ReadLine();
                    lineNumber++;
                }
            }
        }
    }
}
